import request from '@/utils/request'
// 列表
export function getList(data, url) {
    return request({
        url: '/Statistic_income_decomposition/income_comprehensive',
        method: 'post',
        data: data
    })
}

// 获取门店列表
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
export function getInfo(data, type) {
    let url = ''
    switch (type) {
        case 'shou':
            url = '/Statistic_income_decomposition/coins_type_info'
            break;
        case 'xing':
            url = '/Statistic_income_decomposition/star_type_info'
            break;
        case 'menpiao':
            url = '/Statistic_income_decomposition/door_package_info'
            break;
        case 'menjin':
            url = '/Statistic_income_decomposition/door_type_info'
            break;
        case 'dui':
            url = '/Statistic_income_decomposition/coins_machine_info'
            break;
        case 'za':
            url = '/Statistic_income_decomposition/others_type_info'
            break;
        case 'huan':
            url = '/Statistic_income_decomposition/exchange_type_info'
            break;
        default:
            break;
    }
    return request({
        url: url,
        method: 'post',
        data: data
    })
}